import Vue from 'vue'

import 'normalize.css/normalize.css'

// import ElementUI from 'element-ui'
import {
    Checkbox,
    Message,
    Select,
    Option,
    DatePicker,
    Button,
    Input,
    Table,
    TableColumn,
    Pagination,
    Timeline,
    TimelineItem,
    Tabs,
    TabPane,
    Carousel,
    CarouselItem,
} from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css'
// import locale from 'element-ui/lib/locale/lang/en' // lang i18n

import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'
import api from './api'
Vue.use(api)

import '@/icons' // icon
import '@/permission'
import './utils/rem'
import './utils/reset.css'

// 引入echarts
import  echarts  from  'echarts'
Vue.prototype.$echarts  =  echarts
    // Vue.use(ElementUI)
Vue.use(Checkbox)
    // Vue.use(Message)
Vue.use(Select)
Vue.use(Option)
Vue.use(DatePicker)
Vue.use(Button)
Vue.use(Input)
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Pagination);
Vue.use(Timeline);
Vue.use(TimelineItem);
Vue.use(Tabs);
Vue.use(TabPane);
Vue.use(Carousel);
Vue.use(CarouselItem);
Vue.prototype.$message = Message;

Vue.config.productionTip = false

new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
})